module.exports = {
  usernamePlaceholder: {
    type: String,
    default: '请输入帐号',
    name: '帐号占位文本',
    filedType: 'string'
  },

  passwordPlaceholder: {
    type: String,
    default: '请输入密码',
    name: '密码占位文本',
    filedType: 'string'
  },

  loginSuccessUrl: {
    type: String,
    default: '',
    name: '登录成功跳转地址',
    nameTip: '不填写时，默认跳转tw-app-config.js中roleHome中配置的角色首页，当还未找到匹配项时，就跳转到eco首页',
    filedType: 'string'
  },

  findPwdUrl: {
    type: String,
    default: '',
    name: '找回密码链接地址',
    filedType: 'string'
  },

  registerUrl: {
    type: String,
    default: '',
    name: '注册链接地址',
    filedType: 'string'
  },

  linkColor: {
    type: String,
    default: '#0a77f5',
    name: '链接文本色',
    filedType: 'color'
  },

  linkWeight: {
    type: Boolean,
    default: false,
    name: '链接文本是否粗体',
    filedType: 'switch'
  },

  btnColor: {
    type: String,
    default: '#0a77f5',
    name: '登录按钮背景色',
    filedType: 'color'
  },

  isConcise: {
    type: Boolean,
    default: false,
    name: '是否开启简洁版',
    nameTip: '开启后隐藏忘记密码与注册账号，提示信息位置调整',
    filedType: 'switch'
  },

  linkText: {
    type: String,
    default: '返回首页',
    name: '跳转链接文字',
    filedType: 'string'
  },

  toHome: {
    type: String,
    default: '',
    name: '底部自定义链接地址',
    nameTip: '当前只有开启简洁版有效',
    filedType: 'string'
  },

  // 以下代码因接口还没好，先注释掉，等接口好了再放开
  isCaptcha: {
    type: Boolean,
    default: false,
    name: '是否开启验证码',
    nameTip: '开启后登录失败会显示验证码',
    filedType: 'switch'
  },

  captchaType: {
    type: Array,
    default: 'click',
    name: '验证码类型',
    filedType: 'select',
    options: [
      {
        name: '图形验证码',
        value: 'pic'
      },
      {
        name: '短信验证码',
        value: 'code'
      },
      {
        name: '点选验证码',
        value: 'click'
      },
      {
        name: '滑动验证码',
        value: 'slide'
      }
    ],
    vif: {
      key: 'isCaptcha',
      value: true
    }
  },
  imgWidth: {
    type: String,
    default: '330px',
    name: '验证图形宽度',
    filedType: 'string',
    vif: {
      key: 'isCaptcha',
      value: true
    }
  },
  imgHeight: {
    type: String,
    default: '155px',
    name: '验证图形高度',
    filedType: 'string',
    vif: {
      key: 'isCaptcha',
      value: true
    }
  },
  sucColor: {
    type: String,
    default: '#0a77f5',
    name: '验证成功色',
    filedType: 'color',
    vif: {
      key: 'isCaptcha',
      value: true
    }
  },
  errColor: {
    type: String,
    default: '#d9534f',
    name: '验证失败色',
    filedType: 'color',
    vif: {
      key: 'isCaptcha',
      value: true
    }
  },
  movColor: {
    type: String,
    default: '#5cb85c',
    name: '拖动条颜色',
    filedType: 'color',
    vif: {
      key: 'isCaptcha',
      value: true
    }
  }
}
